package container

func InArray[T comparable](array []T, search T) bool {
	if len(array) == 0 {
		return false
	}

	for _, v := range array {
		if v == search {
			return true
		}
	}

	return false
}
